Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Nov 5, 2025

Add a shortcut for the MPI-global, valid particles in a PC.
Add more doc strings.

Add a shortcut for the MPI-global, valid particles in a PC.
@ax3l ax3l added the component: particles Particles label Nov 5, 2025
@ax3l ax3l merged commit 937cb60 into AMReX-Codes:development Nov 5, 2025
17 checks passed
@ax3l ax3l deleted the topic-easier-pc-size branch November 5, 2025 22:30
// Long TotalNumberOfParticles (bool only_valid=true, bool only_local=false) const;
.def("number_of_particles",
[](ParticleContainerType const & pc, bool only_local){
return pc.TotalNumberOfParticles(only_local);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, forgot first parameter: true, ...

)
.def_property_readonly("size",
[](ParticleContainerType const & pc){
return pc.TotalNumberOfParticles(false);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, forgot first parameter: true, ...

@ax3l ax3l mentioned this pull request Nov 5, 2025
ax3l added a commit that referenced this pull request Nov 5, 2025
Ooopsi, forgot to set first parameter. #502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants